package org.lanettiesso.mybatis.mapper;


import org.apache.ibatis.annotations.Param;
import org.lanettiesso.mybatis.entity.User;

import java.util.List;

public interface UserMapper {

    User selectById(@Param("id") int id);

    List<User> selectByName(@Param("name") String name);

    int save(User user);
}
